/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package fxgreader;

import java.util.ArrayList;

/**
 *
 * @author perkintang
 */
public class Article {

    private String link;
    private String title;
    private String body;
    private ArrayList<String> images = new ArrayList<String>();
    private String id;
    private boolean starred = false;
    private boolean shared = false;
    private boolean liked = false;

    public void setLink(String link){
        this.link = link;
    }

    public String getLink(){
        return link;
    }
    public void setStarred(){
        this.starred = !starred;
    }

    public boolean isStarred(){
        return starred;
    }

    public void setShared(){
        this.shared = !shared;
    }

    public boolean isShared(){
        return shared;
    }

    public void setLiked(){
        this.liked = !liked;
    }

    public boolean isLiked(){
        return liked;
    }
    public void setTitle(String title){
        this.title = title;
    }
    public String getTitle(){
        return title;
    }

    public void setBody(String body){
        this.body = body;
    }
    public String getBody(){
        return this.body;
    }

    public void addImage(String image){
        images.add(image);
    }

    public ArrayList<String> getImages(){
        return images;
    }

    public void setId(String id){
        this.id = id;
    }

    public String getId(){
        return id;
    }
}
